package cn.itsource.basic.util;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class PageList<T> {
    //总数
    private long total = 0;
    //当前页数据
    private List<T> datas = new ArrayList<>();

    public PageList(long total, List<T> datas) {
        this.total = total;
        this.datas = datas;
    }

    public PageList() {
    }
}
